package com.maimao.search.utils;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.lucene.search.join.ScoreMode;

/**
 * 嵌套查询字段信息
 *
 * @author MaoLin Wang
 * @date 2021/4/27 下午8:48
 */
@Data
@Accessors(chain = true)
public class RangeQueryFiled {

    private String fieldName;

    /**
     * 是否嵌套
     */
    private boolean nested;

    /**
     * nested path
     */
    private String path;

    /**
     * nested query scoreMode
     */
    private ScoreMode scoreMode;

    /**
     * 左开区间
     */
    private boolean leftOpen;

    /**
     * 右开区间
     */
    private boolean rightOpen;
}
